home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
comm
/
net
/
mlink132.lha
/
MultiLink
/
MLink_Install
< prev
next >
Wrap
Text File
|
1995-03-30
|
20KB
|
443 lines
;********************************************************************
; Multilink Installer by Robert Reiswig (rcr@netcom.com) ©1995
; If you wish to use parts of this installer you must ask!
; For Mr. Ezra Story for one very cool Program!
;
; Installer Version 2.0c
;********************************************************************
(set PAYOLA 0) ;** 0=No Pay 1=Pay
;********************************************************************
; Current Version of Mlink
;********************************************************************
(set MlinkVer "1.7")
;********************************************************************
; Info on Ezra and Mlink and a shameless plug for me :)
;********************************************************************
(message "\nMultilink V" MlinkVer "\n\nCopyright (c) 1994, 1995\n\nby:\n\nEzra Story\n\nezy@panix.com\n\n\n"
"Installer By:\nRobert Reiswig (rcr@netcom.com)")
;********************************************************************
; If payed the say thanks!
;********************************************************************
(if (= PAYOLA 1)
(message "\n\n\n\n\nThank You\n\n\nfor registering Multilink!")
)
;********************************************************************
; Ask what to copy and then do it
;********************************************************************
(set mcopy (askoptions (choices " MLink (Amiga Executable)" " MLink.guide (Documentation)"
" Napsaterm (Telnet Tool)" " Dock Icon (For ToolManger)"
" MLink ARexx Scripts")
(prompt "Please Select the Multilink files wish to Install.")
(help "Please Select the Multilink files wish to Install.")
(default 63)
)
)
;********************************************************************
; Ask if upgrading
;********************************************************************
(set before (askchoice (choices "Upgrading - Keep Current Settings" "First Time Install - Enter Settings")
(prompt "Have you installed Multilink before and would you like to keep your current settings?".)
(help "The name of the serial device you use.")
(default 0)
)
)
;*************************************************************************
; Ask where old file is and back it up (to get correct Filename and Dir!)
;*************************************************************************
(if (= before 0)
(
(set whereold (askdir (prompt "Please select the *directory* where Multilink is stored.")
(help "Please select the directory where Multilink is stored.")
(default "Work:")
)
)
(set oldname (askfile (prompt "Please select the current *Mlink* file.\n(This will be renamed with '_old')")
(help "Please select the current *Mlink* file.\n(This will be renamed with '_old')")
(default (tackon whereold "mlink"))
)
)
(rename oldname (cat oldname "_old"))
(rename (cat oldname ".info") (cat oldname "_old.info"))
(set where whereold)
)
)
;********************************************************************
; Check to see what user wan't copied and do it!
;********************************************************************
(if (<> mcopy 0)
(
(if (= before 1)
(
(set mlinkDir (askdir (prompt "Please select where you wish to put the selected programs. (A directory called 'MLink' will be created there!)")
(help "Select where you wish to put the selected programs. (A directory called 'MLink' will be created there!)")
(default "ram:")
)
)
;********************************************************************
; Make Mlnik dir, if it is not there
;********************************************************************
(if (< (exists (tackon mlinkDir "MLink")) 2)
(makedir (tackon mlinkDir "MLink") (infos))
)
(set where (tackon mlinkDir "MLink"))
)
)
;********************************************************************
; Copy Mlink and Ask if user wants to set ToolTypes
;********************************************************************
(if (IN mcopy 0)
(
(copyfiles (source "MLink") (dest where) )
(if (= before 1) (copyfiles (source "MLink.info") (dest where) ) )
(if (= before 0) (copyfiles (source (cat oldname "_old.info")) (dest where) (newname (cat oldname ".info")) ))
;********************************************************************
; See what type of settings user wants to set now
;********************************************************************
(if (= before 1)
(
(set sett (askoptions (choices " Basic Settings" " Interface Settings" " Advance Settings")
(prompt "Which of the following settings would you like to set now? (These are "
"the ToolTypes for Mlink, you can always change these later. Basic Settings is all you should need for now.)")
(help "Which of the following settings would you like to set now?")
(default 1)
)
)
)
)
;********************************************************************
; Ask about the Basic stuff, if user has selected it
;********************************************************************
(if (IN sett 0)
(
(set device (askchoice (choices "serial.device" "gvpser.device" "baudbandit.device" "artser.device" "usr.device" "duart.device" "Other")
(prompt "The name of the serial device you use. Multilink defaults to "
"using 'serial.device'".)
(help "The name of the serial device you use.")
(default 0)
)
)
(if (= device 6)
(
(set device (askstring
(prompt "Enter the Serial Device you use.")
(help "Enter the Serial Device you use.")
(default ".device")
)
)
)
)
(set unit (askchoice (choices "0" "1" "2" "3" "4" "5" "6" "7")
(prompt "The unit of the serial device to use. Multilink defaults to 0.")
(help "The unit of the serial device yo use.")
(default 0)
)
)
(set baud (askchoice (choices "300" "1200" "2400" "9600" "19200" "31250" "38400" "57600" "64000" "76800" "115200" "230400")
(prompt "The bps rate to use on the serial port. Multilink defaults to "
"using the rate you set in sys:prefs/serial. (This will be the baud"
" rate that you have set in your Term program.)")
(help "Enter the Baud rate that you have set in your Terminal Program.")
(default 7)
)
)
(set hispeed (askchoice (choices "YES" "NO")
(prompt "If you're using 8bit no parity, you should probably turn this on."
" It activates a lower-overhead mode in the C= serial.device for 8n1 ports."
"\n(Default is YES)")
(help "If you're using 8bit no parity, you should probably turn this on.")
(default 0)
)
)
(set ctsrts (askchoice (choices "YES" "NO")
(prompt "If this specified, Multilink will use CTS/RTS handshaking. Again, "
"by default, Multilink will use it if you have set it in "
"sys:prefs/serial as well.\n(Default is YES)")
(help "If this specified, Multilink will use CTS/RTS handshaking, you should probably turn this on.")
(default 0)
)
)
(set forcecd (askchoice (choices "YES" "NO")
(prompt "If you have a wierd wiring on your serial port (ie. direct "
"connect) you may need to set this option to make Multilink ignore "
"the state of the carrier line on the port.\n(Default is NO)")
(help "If you have a wierd wiring on your serial port, you may need to set this option ON")
(default 1)
)
)
(set cps (askstring
(prompt "Set this to the average characters per second you typically get "
"over your connection to the UNIX host on a Zmodem download or "
"upload. This is an important option! Set it too low, and your "
"speed will suffer. Set it too high, and interactive response will "
"suffer. As an example, the typical setting for a 14.4kbps v42bis "
"link is about 1500 or 1600. If you leave this unspecified, "
"Multilink will default to 3840 (which is probably wrong for you). "
)
(help "Set Avg. CPS")
(default "1500")
)
)
(set USU (askstring
(prompt "This should be set to the command line you would use to start mlink "
"on the UNIX host. ie. If you keep mlink in your home directory, "
"it should be \"~/mlink\", or if you keep it in a bin directory in "
"your account it might be \"~/bin/mlink\". Multilink defaults to "
"using just \"mlink\" , which will usually work if the mlink "
"executable is in your search path on the UNIX host. (You must include the \" \" around the command!)"
)
(help "Command line to start Mlink")
(default "\"mlink\"")
)
)
;********************************************************************
; Based on the answers gave, set data up for the TooType
;********************************************************************
(if (= baud 0) (set baud "300")) (if (= baud 1) (set baud "1200"))
(if (= baud 2) (set baud "2400")) (if (= baud 3) (set baud "9600"))
(if (= baud 4) (set baud "19200")) (if (= baud 5) (set baud "31250"))
(if (= baud 6) (set baud "38400")) (if (= baud 7) (set baud "57600"))
(if (= baud 8) (set baud "64000")) (if (= baud 9) (set baud "76800"))
(if (= baud 10) (set baud "115200")) (if (= baud 11) (set baud "230400"))
(if (= device 0) (set device "serial.device"))
(if (= device 1) (set device "gvpser.device"))
(if (= device 2) (set device "baudbandit.device"))
(if (= device 3) (set device "artser.device"))
(if (= device 4) (set device "usr.device"))
(if (= device 5) (set device "duart.device"))
(if (= unit 0) (set unit "0")) (if (= unit 1) (set unit "1"))
(if (= unit 2) (set unit "2")) (if (= unit 3) (set unit "3"))
(if (= unit 4) (set unit "4")) (if (= unit 5) (set unit "5"))
(if (= unit 6) (set unit "6")) (if (= unit 7) (set unit "7"))
;********************************************************************
; Set the ToolType with the basic answers.....
;********************************************************************
(tooltype (dest (tackon where "Mlink"))
(settooltype "BAUD" baud)
(if (= hispeed 0) (settooltype "HISPEED" "") )
(if (= ctsrts 0) (settooltype "CTSRTS" "") )
(if (= forcecd 0) (settooltype "FORCECD" "") )
(settooltype "CPS" cps)
(settooltype "DEVICE" device)
(settooltype "UNIT" unit)
(settooltype "UNIXSTARTUP" USU)
)
;********************************************************************
; Note to change......
;********************************************************************
(message "\n\nRembember that you can change these settings by editing the ToolTypes.")
)
)
;********************************************************************
; Asking about the Interface stuff, if the user selected it
;********************************************************************
(if (IN sett 1)
(
(message "\n\n\nThe following have to do with the\n\nInterface ToolTypes.")
(set wintop (askstring (prompt "Use this to specify the starting position of the Multilink status "
"window. (Pixels down from the top.)")
(help "Pixles down from the top.")
(default "10")
)
)
(set winleft (askstring (prompt "Use this to specify the starting position of the Multilink status "
"window. (Pixels from the left edge of the screen.)")
(help "Pixles from the left edge of the screen.")
(default "10")
)
)
(set pubscreen (askstring (prompt "Set this to the name of the public screen you want Multilink's "
"window to open on. Multilink defaults to opening on the default "
"public screen.\n(Press <RETURN> if you wish for Multilink to open on the default public screen!)")
(help "Set this to the name of the public screen you want Multilink's window to open on.")
(default "")
)
)
(set iconify (askchoice (choices "YES" "NO")
(prompt "Specify this if you want Multilink to start up iconified. "
"\n(Default is NO)")
(help "Specify this if you want Multilink to start up iconified. ")
(default 1)
)
)
;********************************************************************
; Set the ToolType with the interface answers.....
;********************************************************************
(tooltype (dest (tackon where "Mlink"))
(settooltype "WINTOP" wintop)
(settooltype "WINLEFT" winleft)
(if (> pubscreen "") (settooltype "PUBSCREEN" pubscreen) )
(if (= iconify 0) (settooltype "ICONIFY" "") )
)
)
)
;********************************************************************
; Asking about the Interface stuff, if the user selected it
;********************************************************************
(if (IN sett 2)
(
(message "\n\n\nThe following have to do with the\n\nAdvanced ToolTypes.")
(set unixcps (askstring
(prompt "This is exactly the same as the CPS option except it refers only to "
"the speed of data from the UNIX host to your Amiga. Multilink "
"defaults to using the same pacing speed in both directions. If you "
"need to have a differing speed in each direction, then use CPS for "
"Amiga->UNIX and UNIXCPS for UNIX->Amiga.")
(help "Set UNIXCPS")
(default "1500")
)
)
;(2048/serialcps)+6 (on hold)
(set packetsize (askstring
(prompt "Sets the maximum packet size. The default and true maximum is "
"2047. You may set the packetsize anywhere from 1 to 2047.")
(help "Sets the maximum packet size.")
(default "2047")
)
)
(set servfile (askstring
(prompt "Specifies a file from which to look up inet service names before "
"asking the UNIX host. Multilink defaults to just asking the remote "
"UNIX host for the names and ports. This option is used to allow "
"custom service names, so that one can run daemons launched by inetd "
"with Mlink.\n(You must include the \" \" around the file!)")
(help "Specifies a file from which to look up inet service names.")
(default "\" \"")
)
)
;********************************************************************
; Set the ToolType with the Advance answers.....
;********************************************************************
(tooltype (dest (tackon where "Mlink"))
(settooltype "UNIXCPS" unixcps)
(settooltype "PACKETSIZE" packetsize)
(settooltype "SERVFILE" servfile)
)
)
)
)
)
;********************************************************************
; Copy Guide File
;********************************************************************
(if (IN mcopy 1) (copyfiles (source "Docs/MLink.guide") (dest where) (infos) ) )
;********************************************************************
; Copy Napsa#?Guide File
;********************************************************************
(if (IN mcopy 2)
(
(copyfiles (source "Clients/napsaprefs") (dest where) (infos) )
(copyfiles (source "Clients/napsaterm") (dest where) (infos) )
)
)
;********************************************************************
; Copy Dock Icon
;********************************************************************
(if (IN mcopy 3) (copyfiles (source "Icons/tools_mlink.info") (dest where)) )
;********************************************************************
; Copy ARexx scripts
;********************************************************************
(if (IN mcopy 4) (copyfiles (source "Rexx/MLStat") (dest where)) )
;********************************************************************
; Set the @default to where Mlink was copied
;********************************************************************
(set @default-dest where)
)
)
;********************************************************************
; Let them know that his is Shareware
;********************************************************************
(message "\n\n\n\n\nDon't forget to upload \"mlink.tar.gz\" to your\n\nUNIX Host.")
(if (= PAYOLA 0)
(
(message "Shareware Information\n"
"=====================\n\n"
"Multilink is uncrippled shareware. That means if you like the package, "
"and use it, you have to send me $25. If you hate the thing, and hardly "
"ever touch it, you don't.\n\n"
"For more information please read the mlink.guide file!"
)
)
)